<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        ul{
            width: 100%;
            height: 50px;
            line-height: 50px;
            padding-left: 20%;
            margin-top: 10%;
            background: #ddd;
            box-sizing: border-box;
        }
        ul li{
            width: 30px;
            height: 40px;
            display: inline-block;
            text-align: center;
            line-height: 40px;
            list-style: none;
            margin-right: 10px;
            border: 1px solid #ccc;
            background: #fff;
            color: black;
        }
        ul li:first-child,ul li:last-child{
            width: 80px;
        }
        ul li a{
            text-decoration: none;
            color:#000;
            font-size: 16px;
        }
        ul li:hover{
            font-size: 20px;
            font-weight: bold;
            background: aqua;
        }
    </style>
</head>
<body>
    <ul>
        <li><a href="#">上一页</a></li>
        <li><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">5</a></li>
        <li><a href="#">下一页</a></li>
    </ul>
</body>
</html>